package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.Domain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_withdraw")
@ApiModel(value = "Withdraw对象", description = "回U提现记录")
public class Withdraw extends Domain {
    @TableId(value = "id", type = IdType.AUTO)//如果没有这句 id会以很大的id
    @ApiModelProperty(name = "id", value = "主键-ID")
    private Long id;
    @ApiModelProperty(value = "回U地址")
    private String address;
    @ApiModelProperty(value = "平台U地址")
    private String cashAddress;
    @ApiModelProperty(value = "用户名")
    private String username;
    @ApiModelProperty(value = "提现金额  充值为usdt 提现为cny")
    private BigDecimal money;
    @ApiModelProperty(value = "提现状态:init 已提交 reviewed:待确认, pass:已确认, cancel:取消/拒绝")
    private String status;
    @ApiModelProperty(value = "用户id")
    @JsonFormat(
            shape = JsonFormat.Shape.STRING
    )
    private Long userId;
    @ApiModelProperty(value = "类型: witdraw 提现 recharge 充值")
    private String type;
    @ApiModelProperty(value = "服务费")
    private BigDecimal serviceFee;
    @ApiModelProperty(value = "实际金额")
    private BigDecimal actualAmount;
    @ApiModelProperty(value = "u费率")
    private BigDecimal usdtRate;
}